<?php
include_once("$config[webroot]/module/product/includes/plugin_order_class.php");
$order=new order();
//===================================
if(!empty($_POST['endapply']))
{
	$re=$order->orderendapply();
	if($re)
		msg("main.php?action=m&m=product&s=admin_buyorder&menu=$_GET[menu]");
}
if(!empty($_GET['id'])&&is_numeric($_GET['id']))
{
	$tpl->assign("oendapply",$order->orderendapply($_GET['id']));
}
//---------------------------------
$tpl->assign("config",$config);
$tpl->assign("lang",$lang);
$output=tplfetch("admin_orderendapply.htm");
?>